import request from '@/utils/request'

// 查询公寓收费项目列表
export function listChargeItem(query) {
  return request({
    url: '/business/chargeItem/list',
    method: 'get',
    params: query
  })
}

// 查询公寓收费项目详细
export function getChargeItem(itemId) {
  return request({
    url: '/business/chargeItem/' + itemId,
    method: 'get'
  })
}

// 新增公寓收费项目
export function addChargeItem(data) {
  return request({
    url: '/business/chargeItem',
    method: 'post',
    data: data
  })
}

// 修改公寓收费项目
export function updateChargeItem(data) {
  return request({
    url: '/business/chargeItem',
    method: 'put',
    data: data
  })
}

// 删除公寓收费项目
export function delChargeItem(itemId) {
  return request({
    url: '/business/chargeItem/' + itemId,
    method: 'delete'
  })
}
